rem if %1 eq pushd pushd \\lapgba\lucygrid
del /s c:\LucyGrid\*.*
md c:\LucyGrid
cd LucyGridNode\bin\debug
copy *.* c:\LucyGrid

SET APPPATH="c:\LucyGrid\LucyGridNode.exe"

rem Open firewall
netsh advfirewall firewall add rule name="LucyGrid" dir=in action=allow program=%APPPATH% enable=yes
netsh advfirewall firewall add rule name="LucyGrid" dir=out action=allow program=%APPPATH% enable=yes

rem if %1 = pushd popd